<template>
  <div>
    <h3>个人中心</h3>
    <van-button type="primary" @click="logout">安全退出</van-button>
  </div>
</template>

<script setup lang="ts">

import {useRouter} from "vue-router";

const router = useRouter();
const logout = () => {
  router.replace("/")
}
</script>

<style scoped lang="scss">

</style>
